home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 July
/
Macworld (1999-07).dmg
/
Shareware World
/
Info
/
For Developers
/
Mops 3.4.sea
/
Mops source
/
SpeechStuff folder
/
Utility Code
< prev
next >
Wrap
Text File
|
1993-08-20
|
499b
|
37 lines
: x^y { x y / storage -- }
1 -> storage
y 0 = nif
y 0 do
storage x * -> storage
loop
then
storage
;
: NumberToString { number addr / count quot -- addr len }
0 -> count
begin
1 ++> count
10 count x^y number >
until
0 count 1- do
number 10 i x^y /mod -> quot -> number
quot 48 + addr count 1- i - + c!
-1 +loop
addr count
;
: WaitASec { / end -- }
global ticks @
60 + -> end
begin
end global ticks @ =
until
;
: WaitFor#Secs ( n -- )
0 do
WaitASec
loop
;